package com.woniuxy.store.core.service.impl;

import com.woniuxy.store.core.model.MdSt;
import com.woniuxy.store.core.model.MdStorethird;
import com.woniuxy.store.core.mapper.MdStorethirdMapper;
import com.woniuxy.store.core.service.MdStorethirdService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.store.core.vo.MdStorethirdVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-29
 */
@Service
public class MdStorethirdServiceImpl extends ServiceImpl<MdStorethirdMapper, MdStorethird> implements MdStorethirdService {

    @Autowired(required = false)
    MdStorethirdMapper mdStorethirdMapper;

    @Override
    public void insertOne(MdStorethird mdStorethird) {
        mdStorethirdMapper.insert(mdStorethird);
    }

    @Override
    public void delectOne(int thirdId) {
        mdStorethirdMapper.delectOne(thirdId);
    }

    @Override
    public List<MdStorethirdVo> listthird(int secondId, int storeId) {
        List<MdStorethirdVo> listthirdvo =mdStorethirdMapper.getThird(secondId,storeId);
        return listthirdvo;
    }
}
